// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.sys.entity.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * WfsCargo
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "wfs_cargo", autoResultMap = true)
@Schema(title = "WFS货件")
public class WfsCargo implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 货件单号
   */
  @TableField(value = "`cargo_code`")
  @Schema(title = "货件单号")
  private String cargoCode;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @JoinField(SysUser.class)
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 店铺
   */
  @TableField(value = "`shop_id`")
  @JoinField(ShopInfo.class)
  @Schema(title = "店铺")
  private Long shopId;

  /**
   * 入库订单编号
   */
  @TableField(value = "`in_bound_order_id`")
  @Schema(title = "入库订单编号")
  private String inBoundOrderId;

  /**
   * 物流中心编号
   */
  @TableField(value = "`logistics_code`")
  @Schema(title = "物流中心编号")
  private String logisticsCode;

  /**
   * 配送地址
   */
  @TableField(value = "`distribution_addresses`")
  @Schema(title = "配送地址")
  private String distributionAddresses;

  /**
   * 退货地址
   */
  @TableField(value = "`return_addresses`")
  @JoinField(WFSAddress.class)
  @Schema(title = "退货地址")
  private Long returnAddresses;

  /**
   * 国家/地区
   */
  @TableField(value = "`country_name`")
  @JoinField(SysCountry.class)
  @Schema(title = "国家/地区")
  private Long countryName;

  /**
   * 详细地址
   */
  @TableField(value = "`detailed_address`")
  @Schema(title = "详细地址")
  private String detailedAddress;

  /**
   * 平台货件状态
   */
  @TableField(value = "`cargo_status`")
  @Schema(title = "平台货件状态")
  private String cargoStatus;

  /**
   * 货件本地状态 (0 - 已申报; 1 - 已发货; 2 - 入库中; 3 - 已完成; 4 - 已取消; 5 - 待申报; )
   */
  @TableField(value = "`cargo_sync_status`")
  @Schema(title = "货件本地状态")
  private String cargoSyncStatus;

  /**
   * 发货单号
   */
  @TableField(value = "`shipping_list_codes`")
  @Schema(title = "发货单号")
  private String shippingListCodes;

  /**
   * 承运人
   */
  @TableField(value = "`contractors`")
  @Schema(title = "承运人")
  private String contractors;

  /**
   * 箱数
   */
  @TableField(value = "`cases`")
  @Schema(title = "箱数")
  private Integer cases;

  /**
   * 城市
   */
  @TableField(value = "`ctiy`")
  @Schema(title = "城市")
  private String ctiy;

  /**
   * 省州地区
   */
  @TableField(value = "`area`")
  @Schema(title = "省州地区")
  private String area;

  /**
   * 邮政编码
   */
  @TableField(value = "`postal_code`")
  @Schema(title = "邮政编码")
  private String postalCode;

  /**
   * 备注
   */
  @TableField(value = "`remarks`")
  @Schema(title = "备注")
  private String remarks;

  /**
   * 发货状态 (0 - 是; 1 - 否; )
   */
  @TableField(value = "`shipment_status`")
  @Schema(title = "发货状态")
  private String shipmentStatus;

  /**
   * 完成时间
   */
  @TableField(value = "`completed_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "完成时间")
  private java.util.Date completedTime;

  /**
   * 货件号
   */
  @TableField(value = "`wfsshipment`")
  @Schema(title = "货件号")
  private String wfsshipment;
}
